﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Might.UIControls.PropertyEditor.Items {

    public partial class ReadOnlyItem : UserControl , IPropertyEditorItemWithValue<string> {

        public event EventHandler ValueChanged;       
        private string label;
        private string value;
        
        public ReadOnlyItem( string label ) {
            InitializeComponent();
            this.label = label;
        }        

        public string Value {
            get {
                return value;
            }
            set {                
                this.value = value;
                labelTxt.Text = Label + " : ";
                valueTxt.Text = value;
            }
        }
        
        public string Label {
            get { return label; }
        }

    }
}
